package pers.mihao.quickstream.publish.model.convertor;

import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;
import org.mapstruct.factory.Mappers;
import pers.mihao.quickstream.common.model.convertor.BaseConvert;
import pers.mihao.quickstream.publish.model.dto.PublishDetailTaskDTO;
import pers.mihao.quickstream.publish.model.dto.PublishTaskDTO;
import pers.mihao.quickstream.publish.repository.domain.PublishDetailTaskDO;
import pers.mihao.quickstream.publish.repository.domain.PublishTaskDO;

/**
 * @author mihao
 * @since 2024/11/24
 */
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
public interface PublishTaskConvertor extends BaseConvert {

    PublishTaskConvertor INSTANCE = Mappers.getMapper(PublishTaskConvertor.class);

    PublishTaskDTO map2PublishTaskDTO(PublishTaskDO publishTaskDO);

    PublishTaskDO map2PublishTaskDO(PublishTaskDTO publishTaskDTO);


    PublishDetailTaskDTO map2PublishDetailTaskDTO(PublishDetailTaskDO detailTaskDO);

    PublishDetailTaskDO map2PublishDetailTaskDO(PublishDetailTaskDTO detailTaskDTO);

}
